from random import *

chislo_vystelov = int (input())

xa = -7
ya = -8

xb = 5
yb = -8

xc = 5
yc = 5

xd = -7
yd = 5

count = 0

for i in range(chislo_vystelov):
    x = randint(-100, 100)
    y = randint(-100, 100)

    if (x > xa) and (x < xb) and (y < yd) and (y > yb):
        count = count + 1
print('Количество выстрелов:', chislo_vystelov)
print('Количество попаданий:', count)
